import request from '@/utils/request'

// 查询审批配置列表
export function listSysExamineConfig(query) {
  return request({
    url: '/base/sysExamineConfig/list',
    method: 'get',
    params: query
  })
}

// 查询审批配置详细
export function getSysExamineConfig( examineConfigId) {
  return request({
    url: '/base/sysExamineConfig/' +  examineConfigId,
    method: 'get'
  })
}

// 新增审批配置
export function addSysExamineConfig(data) {
  return request({
    url: '/base/sysExamineConfig',
    method: 'post',
    data: data
  })
}

// 修改审批配置
export function updateSysExamineConfig(data) {
  return request({
    url: '/base/sysExamineConfig',
    method: 'put',
    data: data
  })
}

// 删除审批配置
export function delSysExamineConfig( examineConfigId) {
  return request({
    url: '/base/sysExamineConfig/' +  examineConfigId,
    method: 'delete'
  })
}
